package com.yg.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yg.entity.singleEntity.TeacherEducationPromotion;

import com.yg.entity.readAndWriteTemplates.TeacherEducationPromotionTemplate;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 对应sheet02，此表为教师学历提升表
<<<<<<< HEAD
注意！此表的id和教师的id是一个id，同时教师在进行学历提升后，要更改教师的最高学历，即更改教师学历表 Mapper 接口
=======
 * 注意！此表的id和教师的id是一个id，同时教师在进行学历提升后，要更改教师的最高学历，即更改教师学历表 Mapper 接口
>>>>>>> 69fc99cc7e3014ce3b7067423c731b85d7cdf9bc
 * </p>
 *
 * @author YingGu
 * @since 2020-11-04
 */
public interface TeacherEducationPromotionMapper extends BaseMapper<TeacherEducationPromotion> {


    List<TeacherEducationPromotionTemplate> writeExcel(@Param("promotionTemplate") TeacherEducationPromotionTemplate promotionTemplate);

    List<TeacherEducationPromotionTemplate> getTeacherPromotion(@Param("current") long current, @Param("limit") long limit, @Param("promotion") TeacherEducationPromotionTemplate promotion);

    Long getTeacherPromotionPages(@Param("promotion") TeacherEducationPromotionTemplate promotion);

    List<TeacherEducationPromotionTemplate> getTeacherPromotionById(@Param("current") long current, @Param("limit") long limit, @Param("promotion") TeacherEducationPromotionTemplate promotion);

    Long getTeacherPromotionByIdPages(@Param("promotion") TeacherEducationPromotionTemplate promotion);
}
